package com.shareroad.dubboweb.frame.model.entity;

public class ErrorCode {
	public static ErrorCode api_url_error = new ErrorCode(1001,"url not exist");
	public static ErrorCode api_param_interface_miss = new ErrorCode(1002,"api param <_i> is null");
	public static ErrorCode api_param_version_miss = new ErrorCode(1003,"api param <_v> is null");
	public static ErrorCode api_param_method_miss = new ErrorCode(1004,"api param <_m> is null");
	public static ErrorCode api_param_params_illegal = new ErrorCode(1005,"api param <_p> not json");
	public static ErrorCode api_dubbo_service_error = new ErrorCode(1006,"api call dubbo service error");
	public static ErrorCode api_system_error = new ErrorCode(1007,"api system error");
	public static ErrorCode api_parse_jar_error = new ErrorCode(1008,"api parse jar error");
	public static ErrorCode api_class_not_find = new ErrorCode(1009,"api dubbo interface not find");
	public static ErrorCode api_link_dubbo_error = new ErrorCode(1010,"api link dubbo error");
	public static ErrorCode api_dubbo_not_method = new ErrorCode(1011,"api dubbo not method error");
	public static ErrorCode api_dubbo_illegal_access_exception = new ErrorCode(1012,"api_illegal_access_exception");
	public static ErrorCode api_dubbo_illegal_argument_exception = new ErrorCode(1013,"api_illegal_argument_exception");
	public static ErrorCode api_dubbo_method_security_execption = new ErrorCode(1014,"api_dubbo_method_security_execption");
	public static ErrorCode api_dubbo_invocation_target_exception = new ErrorCode(1015,"api_dubbo_invocation_target_exception");
	public static ErrorCode api_data_not_service = new ErrorCode(1016,"api_data_not_service");
	public static ErrorCode api_param_type_not_load = new ErrorCode(1017,"api_param_type_not_load");
	public static ErrorCode api_error_405 = new ErrorCode(1018,"Method Not Allowed");
	public static ErrorCode api_error_406 = new ErrorCode(1019,"Not Available");
	
	
	private int code;
	private String desc;
	private ErrorCode(int code,String desc){
		this.code = code;
		this.desc = desc;
	}
	public int getCode() {
		return code;
	}
	public String getDesc() {
		return desc;
	}
}
